package com.xiangban.dao;

import com.xiangban.model.AccompanyReceiveOrder;
import com.xiangban.model.Order;
import com.xiangban.model.UserAccompany;
import com.xiangban.model.dto.OrderDto;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author ly
 * @date 2021/11/30 17:45
 */
@Repository
public interface OrderMapper {
    List<Order> getOrderInfoByUid(Order order);

    UserAccompany getAccompanyById(Order order);

    void insertOrder(OrderDto orderShare);

    OrderDto getStatusByOrderNo(OrderDto orderDto);

    void updateStatusByorderNo(OrderDto orderDto);

    List<OrderDto> getListOrderByStatus(OrderDto orderDto);

    OrderDto getOrderByOrderNo(Order order);

    List<OrderDto> getListOrderByStasusAndAccompanyid(Order order);

    List<OrderDto> getListOrderByAid(Order order);

    void updateAccompanyId(Order order);

    List<OrderDto> getListOrderByStatusOne(OrderDto orderDto);

    List<OrderDto> getRefundList(OrderDto orderDto);

    OrderDto getAccompanyName(OrderDto orderDto1);

    AccompanyReceiveOrder getOrderTime(OrderDto orderDto);

    List<OrderDto> getMyOrderByStatus(Order order);

    List<OrderDto> getMyOrderByStatus1(Order order);

    void updateAccompanyMoney(Order order);

    Order getOrderNoByUserIdOne(Order order);

    List<OrderDto> getListAwaitOrder(OrderDto order);

    List<OrderDto> getOrderNo();

    OrderDto getOrderInfoByOrderNo(Order order);

    Integer getreceiveCount(Order order);

    void updateFailStatus(OrderDto orderDto);

    String update(Order order);

    OrderDto getAccompanyPhoneByOrderNo(Order order);

    OrderDto getRelationPhoneByOrderNo(Order order);
}
